package com.zenith.edu.po.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("edu_live_watch_record")
@Schema(name = "EduLiveWatchRecord", description = "直播观看记录实体")
public class EduLiveWatchRecord extends BaseEntity {
    
    @Schema(description = "直播课堂ID")
    private Long liveSessionId;
    
    @Schema(description = "学生ID")
    private Long studentId;
    
    @Schema(description = "加入时间")
    private java.time.LocalDateTime joinTime;
    
    @Schema(description = "离开时间")
    private java.time.LocalDateTime leaveTime;
    
    @Schema(description = "观看时长（分钟）")
    private Integer watchDuration;
    
    @Schema(description = "互动次数（发言、点赞等）")
    private Integer interactionCount;
    
    @Schema(description = "是否完整观看：0-否 1-是")
    private Integer isCompleted;
    
    @Schema(description = "观看完成率（%）")
    private BigDecimal completionRate;
    
    @Schema(description = "设备信息")
    private String deviceInfo;
    
    @Schema(description = "IP地址")
    private String ipAddress;
    
    @Schema(description = "观看清晰度")
    private String qualityLevel;
    
    @Schema(description = "状态：1-正常 2-异常退出")
    private Integer status;
}